<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<meta name="description"
    content="The table should fit on the first page">
<style>
@page {
    size: 400pt 300pt;
    margin: 50pt;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
}

td {
    height: 35pt;
    border: 1pt solid black;
    background-color: lightblue;
}
</style>
</head>

<body>
    <div style="border: 2pt solid red;"></div>
    <table>
        <tbody>
            <tr><td></td></tr>
            <tr><td></td></tr>
            <tr><td></td></tr>
            <tr><td></td></tr>
            <tr><td></td></tr>
        </tbody>
    </table>
</body>

</html>
